package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CustomersMapper;
import com.ruoyi.system.domain.Customers;
import com.ruoyi.system.service.ICustomersService;

/**
 * 客户模块Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-15
 */
@Service
public class CustomersServiceImpl implements ICustomersService 
{
    @Autowired
    private CustomersMapper customersMapper;

    /**
     * 查询客户模块
     * 
     * @param id 客户模块主键
     * @return 客户模块
     */
    @Override
    public Customers selectCustomersById(Long id)
    {
        return customersMapper.selectCustomersById(id);
    }

    /**
     * 查询客户模块列表
     * 
     * @param customers 客户模块
     * @return 客户模块
     */
    @Override
    public List<Customers> selectCustomersList(Customers customers)
    {
        return customersMapper.selectCustomersList(customers);
    }

    /**
     * 新增客户模块
     * 
     * @param customers 客户模块
     * @return 结果
     */
    @Override
    public int insertCustomers(Customers customers)
    {
        return customersMapper.insertCustomers(customers);
    }

    /**
     * 修改客户模块
     * 
     * @param customers 客户模块
     * @return 结果
     */
    @Override
    public int updateCustomers(Customers customers)
    {
        return customersMapper.updateCustomers(customers);
    }

    /**
     * 批量删除客户模块
     * 
     * @param ids 需要删除的客户模块主键
     * @return 结果
     */
    @Override
    public int deleteCustomersByIds(Long[] ids)
    {
        return customersMapper.deleteCustomersByIds(ids);
    }

    /**
     * 删除客户模块信息
     * 
     * @param id 客户模块主键
     * @return 结果
     */
    @Override
    public int deleteCustomersById(Long id)
    {
        return customersMapper.deleteCustomersById(id);
    }
}
